﻿import ConfigParser, os

_config = ConfigParser.SafeConfigParser()
if os.path.isfile('blink.conf'):
    _config.readfp(open('blink.conf'))
else :
    print "****    blink.conf not found."
    exit

conf = {}

for sec in _config.sections() :
    for item in _config.items( sec ) :
        conf[ (sec+"."+item[0]).lower() ] = item[1]

def get(name , notFoundReturn = "") : 
    if conf.has_key( name.lower() ):
        return conf[name.lower()]
    return ""

